// 高阶组件 参考资料https://coolriver.net.cn/articles/vue-mixin-hoc
export default themeType => ({
  // rightType作为参数传入，返回特定mixin
  data() {
    return {
      isVisible: false
    }
  },
  props: {
    type: {
      type: String,
      default: themeType || 'mkc'
    }
  },
  methods: {
    show() {
      this.isVisible = true
    },
    hide() {
      this.isVisible = false
    }
  }
})
